<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#375EAB">

  <title>ini - Go Documentation Server</title>

<link type="text/css" rel="stylesheet" href="ini%20-%20Go%20Documentation%20Server_files/style.css">

<script>window.initFuncs = [];</script>
<script src="ini%20-%20Go%20Documentation%20Server_files/jquery.js" defer="defer"></script>



<script>var goVersion = "go1.13.14";</script>
<script src="ini%20-%20Go%20Documentation%20Server_files/godocs.js" defer="defer"></script>
</head>
<body>

<div id="lowframe" style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
...
</div><!-- #lowframe -->

<div id="topbar" class="wide"><div class="container">
<div class="top-heading" id="heading-wide"><a href="http://127.0.0.1:6060/pkg/">Go Documentation Server</a></div>
<div class="top-heading" id="heading-narrow"><a href="http://127.0.0.1:6060/pkg/">GoDoc</a></div>
<a href="#" id="menu-button"><span id="menu-button-arrow">▽</span></a>
<form method="GET" action="/search">
<div id="menu" style="min-width: 60px;">

<span class="search-box"><input type="search" id="search" name="q" placeholder="Search" aria-label="Search" required=""><button type="submit"><span><!-- magnifying glass: --><svg width="24" height="24" viewBox="0 0 24 24"><title>submit search</title><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg></span></button></span>
</div>
</form>

</div></div>



<div id="page" class="wide" style="outline: currentcolor none 0px;" tabindex="-1">
<div class="container">


  <h1>
    Package ini
    <span class="text-muted"></span>
  </h1>







<div id="nav"></div>


<!--
	Copyright 2009 The Go Authors. All rights reserved.
	Use of this source code is governed by a BSD-style
	license that can be found in the LICENSE file.
-->
<!--
	Note: Static (i.e., not template-generated) href and id
	attributes start with "pkg-" to make it impossible for
	them to conflict with generated attributes (some of which
	correspond to Go identifiers).
-->

	<script>
	document.ANALYSIS_DATA = null;
	document.CALLGRAPH = null;
	</script>

	
		
		<div id="short-nav">
			<dl>
			<dd><code>import "github.com/zzm99/ini"</code></dd>
			</dl>
			<dl>
			<dd><a href="#pkg-overview" class="overviewLink">Overview</a></dd>
			<dd><a href="#pkg-index" class="indexLink">Index</a></dd>
			
			
				<dd><a href="#pkg-subdirectories">Subdirectories</a></dd>
			
			</dl>
		</div>
		<!-- The package's Name is printed as title by the top-level template -->
		<div id="pkg-overview" class="toggleVisible">
			<div class="collapsed">
				<h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
			</div>
			<div class="expanded">
				<h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
				
				
			</div>
		</div>

		<div id="pkg-index" class="toggleVisible">
		<div class="collapsed">
			<h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
		</div>
		<div class="expanded">
			<h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>

		<!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
			<div id="manual-nav">
			<dl>
			
			
			
			
				
				<dd><a href="#File">type File</a></dd>
				
					
					<dd>&nbsp; &nbsp; <a href="#Parse">func Parse(filename string) (*File, error)</a></dd>
				
					
					<dd>&nbsp; &nbsp; <a href="#Watch">func Watch(filename string, listener interface{}) (*File, error)</a></dd>
				
				
					
					<dd>&nbsp; &nbsp; <a href="#File.GetSection">func (f *File) GetSection(name string) (*Section, error)</a></dd>
				
					
					<dd>&nbsp; &nbsp; <a href="#File.NewSection">func (f *File) NewSection(name string) (*Section, error)</a></dd>
				
					
					<dd>&nbsp; &nbsp; <a href="#File.Section">func (f *File) Section(name string) *Section</a></dd>
				
					
					<dd>&nbsp; &nbsp; <a href="#File.Sections">func (f *File) Sections() []*Section</a></dd>
				
			
				
				<dd><a href="#Key">type Key</a></dd>
				
				
					
					<dd>&nbsp; &nbsp; <a href="#Key.Name">func (k *Key) Name() string</a></dd>
				
					
					<dd>&nbsp; &nbsp; <a href="#Key.Value">func (k *Key) Value() string</a></dd>
				
			
				
				<dd><a href="#ListenFunc">type ListenFunc</a></dd>
				
				
			
				
				<dd><a href="#Listener">type Listener</a></dd>
				
				
			
				
				<dd><a href="#Section">type Section</a></dd>
				
				
					
					<dd>&nbsp; &nbsp; <a href="#Section.GetKey">func (s *Section) GetKey(name string) (*Key, error)</a></dd>
				
					
					<dd>&nbsp; &nbsp; <a href="#Section.Key">func (s *Section) Key(name string) *Key</a></dd>
				
					
					<dd>&nbsp; &nbsp; <a href="#Section.Keys">func (s *Section) Keys() []*Key</a></dd>
				
					
					<dd>&nbsp; &nbsp; <a href="#Section.Name">func (s *Section) Name() string</a></dd>
				
					
					<dd>&nbsp; &nbsp; <a href="#Section.NewKey">func (s *Section) NewKey(name, value string) (*Key, error)</a></dd>
				
			
			
			</dl>
			</div><!-- #manual-nav -->

		

		
			<h3>Package files</h3>
			<p>
			<span style="font-size:90%">
			
				<a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/file.go">file.go</a>
			
				<a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/ini.go">ini.go</a>
			
				<a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/key.go">key.go</a>
			
				<a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/parser.go">parser.go</a>
			
				<a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/section.go">section.go</a>
			
			</span>
			</p>
		
		</div><!-- .expanded -->
		</div><!-- #pkg-index -->

		

		
		
		
		
			
			
			<h2 id="File">type <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/file.go?s=42:92#L1">File</a>
				<a class="permalink" href="#File">¶</a>
				
				
			</h2>
			
			<pre>type File struct {
    <span class="comment">// contains filtered or unexported fields</span>
}
</pre>

			

			

			
			
			

			
				
				<h3 id="Parse">func <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/ini.go?s=156:198#L5">Parse</a>
					<a class="permalink" href="#Parse">¶</a>
					
					
				</h3>
				<pre>func Parse(filename <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a>) (*<a href="#File">File</a>, <a href="http://127.0.0.1:6060/pkg/builtin/#error">error</a>)</pre>
				
				
				
			
				
				<h3 id="Watch">func <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/ini.go?s=377:441#L18">Watch</a>
					<a class="permalink" href="#Watch">¶</a>
					
					
				</h3>
				<pre>func Watch(filename <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a>, listener interface{}) (*<a href="#File">File</a>, <a href="http://127.0.0.1:6060/pkg/builtin/#error">error</a>)</pre>
				
				
				
			

			
				
				<h3 id="File.GetSection">func (*File) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/file.go?s=506:562#L22">GetSection</a>
					<a class="permalink" href="#File.GetSection">¶</a>
					
					
				</h3>
				<pre>func (f *<a href="#File">File</a>) GetSection(name <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a>) (*<a href="#Section">Section</a>, <a href="http://127.0.0.1:6060/pkg/builtin/#error">error</a>)</pre>
				
				
				
				
			
				
				<h3 id="File.NewSection">func (*File) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/file.go?s=216:272#L10">NewSection</a>
					<a class="permalink" href="#File.NewSection">¶</a>
					
					
				</h3>
				<pre>func (f *<a href="#File">File</a>) NewSection(name <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a>) (*<a href="#Section">Section</a>, <a href="http://127.0.0.1:6060/pkg/builtin/#error">error</a>)</pre>
				
				
				
				
			
				
				<h3 id="File.Section">func (*File) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/file.go?s=682:728#L30">Section</a>
					<a class="permalink" href="#File.Section">¶</a>
					
					
				</h3>
				<pre>func (f *<a href="#File">File</a>) Section(name <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a>) *<a href="#Section">Section</a></pre>
				
				
				
				
			
				
				<h3 id="File.Sections">func (*File) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/file.go?s=828:864#L38">Sections</a>
					<a class="permalink" href="#File.Sections">¶</a>
					
					
				</h3>
				<pre>func (f *<a href="#File">File</a>) Sections() []*<a href="#Section">Section</a></pre>
				
				
				
				
			
		
			
			
			<h2 id="Key">type <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/key.go?s=13:66#L1">Key</a>
				<a class="permalink" href="#Key">¶</a>
				
				
			</h2>
			
			<pre>type Key struct {
    <span class="comment">// contains filtered or unexported fields</span>
}
</pre>

			

			

			
			
			

			

			
				
				<h3 id="Key.Name">func (*Key) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/key.go?s=157:184#L5">Name</a>
					<a class="permalink" href="#Key.Name">¶</a>
					
					
				</h3>
				<pre>func (k *<a href="#Key">Key</a>) Name() <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a></pre>
				
				
				
				
			
				
				<h3 id="Key.Value">func (*Key) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/key.go?s=206:234#L9">Value</a>
					<a class="permalink" href="#Key.Value">¶</a>
					
					
				</h3>
				<pre>func (k *<a href="#Key">Key</a>) Value() <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a></pre>
				
				
				
				
			
		
			
			
			<h2 id="ListenFunc">type <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/ini.go?s=82:110#L1">ListenFunc</a>
				<a class="permalink" href="#ListenFunc">¶</a>
				
				
			</h2>
			
			<pre>type ListenFunc func(<a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a>)</pre>

			

			

			
			
			

			

			
		
			
			
			<h2 id="Listener">type <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/ini.go?s=111:154#L1">Listener</a>
				<a class="permalink" href="#Listener">¶</a>
				
				
			</h2>
			
			<pre>type Listener interface {
    <span class="comment">// contains filtered or unexported methods</span>
}</pre>

			

			

			
			
			

			

			
		
			
			
			<h2 id="Section">type <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/section.go?s=32:98#L1">Section</a>
				<a class="permalink" href="#Section">¶</a>
				
				
			</h2>
			
			<pre>type Section struct {
    <span class="comment">// contains filtered or unexported fields</span>
}
</pre>

			

			

			
			
			

			

			
				
				<h3 id="Section.GetKey">func (*Section) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/section.go?s=722:773#L35">GetKey</a>
					<a class="permalink" href="#Section.GetKey">¶</a>
					
					
				</h3>
				<pre>func (s *<a href="#Section">Section</a>) GetKey(name <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a>) (*<a href="#Key">Key</a>, <a href="http://127.0.0.1:6060/pkg/builtin/#error">error</a>)</pre>
				
				
				
				
			
				
				<h3 id="Section.Key">func (*Section) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/section.go?s=587:626#L27">Key</a>
					<a class="permalink" href="#Section.Key">¶</a>
					
					
				</h3>
				<pre>func (s *<a href="#Section">Section</a>) Key(name <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a>) *<a href="#Key">Key</a></pre>
				
				
				
				
			
				
				<h3 id="Section.Keys">func (*Section) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/section.go?s=884:915#L43">Keys</a>
					<a class="permalink" href="#Section.Keys">¶</a>
					
					
				</h3>
				<pre>func (s *<a href="#Section">Section</a>) Keys() []*<a href="#Key">Key</a></pre>
				
				
				
				
			
				
				<h3 id="Section.Name">func (*Section) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/section.go?s=535:566#L23">Name</a>
					<a class="permalink" href="#Section.Name">¶</a>
					
					
				</h3>
				<pre>func (s *<a href="#Section">Section</a>) Name() <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a></pre>
				
				
				
				
			
				
				<h3 id="Section.NewKey">func (*Section) <a href="http://127.0.0.1:6060/src/github.com/zzm99/ini/section.go?s=409:467#L18">NewKey</a>
					<a class="permalink" href="#Section.NewKey">¶</a>
					
					
				</h3>
				<pre>func (s *<a href="#Section">Section</a>) NewKey(name, value <a href="http://127.0.0.1:6060/pkg/builtin/#string">string</a>) (*<a href="#Key">Key</a>, <a href="http://127.0.0.1:6060/pkg/builtin/#error">error</a>)</pre>
				
				
				
				
			
		
	

	





	
	
		<h2 id="pkg-subdirectories">Subdirectories <a class="permalink" href="#pkg-subdirectories">¶</a></h2>
	
	<div class="pkg-dir">
		<table>
			<tbody><tr>
				<th class="pkg-name">Name</th>
				<th class="pkg-synopsis">Synopsis</th>
			</tr>

			
			<tr>
				<td colspan="2"><a href="http://127.0.0.1:6060/pkg/github.com/zzm99/">..</a></td>
			</tr>
			

			
				<tr>
				
					<td class="pkg-name" style="padding-left: 0px;">
						<a href="http://127.0.0.1:6060/pkg/github.com/zzm99/ini/fsnotify/">fsnotify</a>
					</td>
				
					<td class="pkg-synopsis">
						Package fsnotify provides a platform-independent interface for file system notifications.
					</td>
				</tr>
			
		</tbody></table>
	</div>



<div id="footer">
Build version go1.13.14.<br>
Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
the content of this page is licensed under the
Creative Commons Attribution 3.0 License,
and code is licensed under a <a href="http://127.0.0.1:6060/LICENSE">BSD license</a>.<br>
<a href="http://127.0.0.1:6060/doc/tos.html">Terms of Service</a> |
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
</div>

</div><!-- .container -->
</div><!-- #page -->


</body></html>